package com.dong.es.entity.searchparam.source;

import co.elastic.clients.elasticsearch.core.search.SourceFilter;
import com.dong.es.entity.EsBaseDTO;
import com.dong.es.entity.searchparam.EsSearchParam;

/**
 * @description: Es 展示参数相关参数
 * @author: 陈瑞东
 * @create: 2022-06-23 11:00
 */
public abstract class EsSourceParam extends EsSearchParam<SourceFilter.Builder> {
    private static final long serialVersionUID = 4202731247268437121L;

    @Override
    protected void addMethod(EsBaseDTO esBaseDTO) {
        setMethod(esBaseDTO);
    }

    @Override
    protected void setMethod(EsBaseDTO esBaseDTO) {
        esBaseDTO.source(this);
    }
}
